<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<script type="text/javascript">
$(document).ready(function(){
	$("#superiorOrgId").click(function(){
		$(this).parent().find("input").each(function(){
			$(this).val("");
		});
	});
});
</script>
<%@ include file="/common/taglibs.jsp"%>
<html>
<head>
</head>
<body>
<div class="pageContent">
  <form method="post" action="${path }/asset/assetAction!update.action" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);" novalidate="novalidate" class="pageForm required-validate">
  <input type="hidden" name="navTabId" value="${ navTabId }"/>
  <div class="pageFormContent" layoutH="86">
      <div>
       <input type="hidden" name="assetInfo.id" value="${assetInfo.id}"/>
	   <input type="hidden" name="assetInfo.isDeleted" value="${assetInfo.isDeleted}"/>
	   <input type="hidden" name="assetInfo.state" value="${assetInfo.state }"/>
	    <input type="hidden" name="assetInfo.isIn" value="${assetInfo.isIn }"/>
	    <input type="hidden" name="assetInfo.startusetime" value="${assetInfo.startusetime }"/>
        <div class="tip"><span>资产基本信息</span></div>
			<p>
				<label>名称：</label>
				 <input type="text" name="assetInfo.name" value="${assetInfo.name }"  maxlength="50" size="30" />
			</p>
			<p>
				<label>型号：</label>
				 <input type="text" name="assetInfo.models" value="${assetInfo.models }" maxlength="50" size="30" />
			</p>
			<p>
				<label>设备序列号：</label>
				 <input type="text" name="assetInfo.equipnumber"  value="${assetInfo.equipnumber }"  maxlength="50" size="30" />
			</p>
			<p>
				<label>资产分类：</label>
				<select  name="assetInfo.type" rel="iselect" loadUrl="${path}/hpin/sysDictType!treeRegion.action?defaultID=10105">
					<option value="${assetInfo.type}"></option>
				</select>
			</p>
			<%-- <p>
				<label>资产状态：</label>
				<select  name="asset.state" rel="iselect" loadUrl="${path}/hpin/sysDictType!treeRegion.action?defaultID=10117">
				</select>
			</p> --%>
			<!-- <p>
				<label>权属关系：</label>
				 <input type="text" name="asset.belongto"    maxlength="50" size="30" />
			</p> -->
			
				
			 <p>
				<label>生产日期：</label>
				<input type="text" name="assetInfo.producedate"  class="date required" size="20" datefmt="yyyy-MM-dd" value="${fn:substring(assetInfo.producedate,0,10) }"/>
				<a class="inputDateButton" href="javascript:;">选择</a>
			</p> 
			<p>
				<label>生产厂商：</label>
				 <input type="text" name="assetInfo.produceunit" value="${assetInfo.produceunit}" maxlength="50" size="30" />
			</p>
			<p>
				<label>资产金额：</label>
				 <input type="text" name="assetInfo.money" value="${assetInfo.money }"   maxlength="50" size="30" />
			</p>
			 <p>
				<label>计量单位：</label>
				<select  name="assetInfo.measure" rel="iselect" loadUrl="${path}/hpin/sysDictType!treeRegion.action?defaultID=10104">
					<option value="${assetInfo.measure }"></option>
				</select>
			</p> 
			
			<p>
				<label>供货单位：</label>
				<input type="hidden" size="32" class="required"  name="assetInfo.supplyunit" bringBackName = "suppliers.id" value="${ suppliers.id }" />
				 
				<input type="hidden" name="supplyunit" value="${assetInfo.supplyunit}"/>
				<input type="text"  bringBackName = "suppliers.name"  value="<hpin:id2nameDB id='${assetInfo.supplyunit}' beanId='org.hpin.asset.dao.SuppliersDao'/>" /><a style="z-index: 9999" class="btnLook" href="${path }/asset/suppliersAction!lookUpSuppliers.action" lookupGroup="suppliers">查找带回</a>
				
			</p>
			<p>
				<label>购买时间：</label>
				 <input type="text" name="assetInfo.buyTime" class="date" size="20" datefmt="yyyy-MM-dd" value="${fn:substring(assetInfo.buyTime,0,10) }"/>
				<a class="inputDateButton" href="javascript:;">选择</a>
			</p>
			<p>
				<label>规定使用年限  (年)：</label>
				 <input type="text" name="assetInfo.lifeyears"  value="${assetInfo.lifeyears }"  maxlength="50" size="30" />
			</p>
			<p>
				<label>已使用年限  (年)：</label>
				 <input type="text" name="assetInfo.usedyears" value="${assetInfo.usedyears }"   maxlength="50" size="30" />
			</p>
			<p>
				<label>保修起始日期：</label>
				<input type="text" name="assetInfo.startTime"  class="date required" size="20" datefmt="yyyy-MM-dd" value="${fn:substring(assetInfo.startTime,0,10) }"/>
				<a class="inputDateButton" href="javascript:;">选择</a>
			</p>
			<p>
				<label>保修天数  (天)：</label>
				 <input type="text" name="assetInfo.warrantydays" value="${assetInfo.warrantydays }"   maxlength="50" size="30" />
			</p>
	         <div class="tip"><span>备注：</span></div>	
	        <p>
				<label>备注：</label>
				<textarea cols="35" rows="2" name="assetInfo.remark" style="width:570px;" value="${assetInfo.remark }"></textarea>
			</p>
			
		</div>
  
    </div>
   <div class="formBar" style="width:98%">
      <ul>
        <li>
          <div class="buttonActive">
            <div class="buttonContent">
              <button type="submit">保存</button>
            </div>
          </div>
        </li>
        <li>
          <div class="button">
            <div class="buttonContent">
              <button type="reset">重置</button>
            </div>
          </div>
        </li>
        <li>
          <div class="button">
            <div class="buttonContent">
              <button type="button" class="close">关闭</button>
            </div>
          </div>
        </li>
      </ul>
    </div>
  </form>
  
</div>
 
</body>
</html>